<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
    <link rel="stylesheet" href="__CSS__/common.css">
    <link rel="stylesheet" href="__CSS__/loan_detail.css">
    <title>贷款详情</title>
</head>
<body>
    <div class="loan-top" style='background: url("__IMG__/bg.png");'>
        <div>
            <div>
                <img src="{$data.thumb}" alt="{$data.name}">
                <div class="loan-top-detail">
                    <p>{$data.name}</p>
                    <p>可贷额度：<span>{$data.credit_line}</span></p>
                    <p>借款期限：<span>{$data.desc}</span></p>
                </div>
            </div>

        </div>
    </div>
    <div class="loan-detail-box">
       <div class="detail-one">
           <div class="detail-title">活动规则</div>
           {volist name="data.rule" id="vo" key="k"}
           <p><span>{$k}</span> <span>{$vo}</span></p>
           {/volist}
       </div>
        <div class="detail-two">
            <div class="detail-title">宜人贷优势</div>
            {volist name="data.advantage" id="vo"}
            <p>
                <span>{$vo.tag}</span> {$vo.desc}
            </p>
            {/volist}
        </div>
    </div>
    <button class="btn" onclick="apply('{$data.id}')">立即申请</button>
</body>
<script src="__JS__/jquery.min.js"></script>
<script type="text/javascript">
    function apply(id) {
        location.href="{:url('user/apply')}"+"?type=1&pid={$data.id}";
    }
</script>
</html>